package ${packageInfo.packageName}.mapper;


import com.yangle.frame.MyMapper;
import ${packageInfo.packageName}.entity.${packageInfo.className};
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ${packageInfo.className}Mapper extends MyMapper<${packageInfo.className}> {
/**
* 批量删除
*/
@Delete("<script> delete from ${packageInfo.table.name} where id in "
+ "<foreach item='item' index='index' collection='ids' open='(' separator=',' close=')'>"
+ "<@mapperEl "item"/>"
+ "</foreach> </script>")
public void deletes(@Param("ids") List<String> ids);
    }
<#macro mapperEl value>${r"#{"}${value}}</#macro>
